package com.trendata.util;

public class JsonResult {
	private boolean success = false;
	private String message = "";
	private Object value;

	public boolean isSuccess() {
		return this.success;
	}

	public JsonResult setSuccess(boolean success) {
		this.success = success;
		return this;
	}

	public String getMessage() {
		return this.message;
	}

	public JsonResult setMessage(String message) {
		this.message = message;
		return this;
	}

	public Object getValue() {
		return this.value;
	}

	public JsonResult setValue(Object value) {
		this.value = value;
		return this;
	}

	public String toJsonString() {
		return JsonUtil.getJson(this);
	}
}
